package com.itcpeng.service;

import com.itcpeng.entity.PageResult;
import com.itcpeng.entity.QueryPageBean;
import com.itcpeng.pojo.Member;

import java.util.List;
import java.util.Map;

public interface MemberService {
    //通过手机号码查询会员
    Member findByTelephone(String telephone);

    //添加会员
    void add(Member member);

    //统计会员数量
    List<Integer> findMemberCountByMonth(List<String> months);

    //会员档案分页
    PageResult findPage(QueryPageBean queryPageBean);

    //体检状态分页
    PageResult findStatePage(QueryPageBean queryPageBean);

    //饼状图统计会员
    List<Map<String, Object>> getMemberReportByAge();

    List<Map<String, Object>> getMemberReportBySex();
}
